import { createRouter,createWebHistory,createWebHashHistory} from 'vue-router'
import Synopsis from '../views/Synopsis.vue';
import Home from '../views/Home.vue';
import Login from '../views/Login.vue';
import  Test  from '../views/test.vue';

const routes = [
    {
        path: '/',
        name: 'Login',
        component:Login
    },
    {
        path: '/test',
        name: 'test',
        component:Test
    },
    {
        path: '/Home',
        name: 'Home',
        component:Home,
        meta: {
            requiresAuth: true,
        }
    },
    
    {
        path: '/Synopsis',
        component:Synopsis
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router;

